package com.dingding.service.activity.core.dao.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.dingding.common.core.base.dao.impl.BaseDaoImpl;
import com.dingding.common.core.beans.PresentCondition;
import com.dingding.service.activity.core.dao.IPresentConditionDao;

/**
 * 
 * @ClassName: IPresentConditionDao 
 * @Description: 积分赠送等级DAO 
 * @author CHEHAUNBO 
 * @date 2016年4月1日 上午9:48:17
 * 
 */
@Component("presentConditionDao")
public class PresentConditionDaoImpl extends BaseDaoImpl<PresentCondition> implements IPresentConditionDao {

	private static final Logger log = Logger.getLogger(PresentConditionDaoImpl.class);

	/**
	 * 
	 * @Title: getPresentConditionList 
	 * @Description:获取所有积分赠送等级
	 * @return List<PresentCondition> 所有积分赠送等级列表
	 * @author CHEHAUNBO
	 * 
	 */
	@Override
	@Transactional(readOnly = true)
	public List<PresentCondition> getPresentConditionList() {

		List<PresentCondition> presentConditions = null;

		try {

			presentConditions = super.queryAll();

		} catch (Exception e) {
			log.error("所有积分赠送等级列表出现异常！", e);
		}

		return presentConditions;
	}

}
